java.lang.Object | +----vs.Vscp
This class contains the mult user shared behavioh API.
public final static int responderOnlyo allClients
public final static int allClientso allClientsExceptMe
public final static int allClientsExceptMeo vsSockNotConnected
public final static int vsSockNotConnectedo vsSockConnecting
public final static int vsSockConnectingo vsSockConnected
public final static int vsSockConnectedo vsSockDisconnecting
public final static int vsSockDisconnecting
public static boolean amIMaster()
o sendKeepConnection
- Function:
- this function returns a Master status in current world.
- Args:
- Nothing.
public static void sendKeepConnection(boolean connectionState)
o getSockState
- Function:
- set the vscp connection mode.
- Args:
- connectionState
- true, to keep the connection,false to normal.
public static int getSockState()
o setAvtroomAvatarColor
- Function:
- this function returns the current vscp socket status.
- Args:
- Nothing.
- Return:one of following:
- vsSockNotConnected
- vsSockConnecting
- vsSockConnected
- vsSockDisconnecting
public static void setAvtroomAvatarColor(String color)
o getAvtroomAvatarColor
- Function:
- This function stores the color value into the Windows95 registry. The color value must be encoded into a string.
- Args:
- color :(in)
- color string.
public static String getAvtroomAvatarColor()
o getAvtroomAvatarURL
- Function:
- This function obtains the current color value of the avatar in question.encoded into a string.
- Return:
- color string.
public static String getAvtroomAvatarURL()
o goFromAvtroomToOriginalWorld
- Function:
- This function obtains the avatar URL.
- Return:
- URL string of Avatar file.
public static void goFromAvtroomToOriginalWorld()
o sendApplSpecificMsg
- Function:
- This function changes the displayed world from avatar room to the original world.
public static void sendApplSpecificMsg(Node obj, String methodName, String argument)
o sendApplSpecificMsgWithDist
- Function:
- this function invokes the specified function with args on all the other clients.
- Args:
- obj :(in)
- Node instance.
- methodName : (in)
- Remote function method name.
- argument : (in)
- Arg string.
public static void sendApplSpecificMsgWithDist(Node obj, String methodName, String argument, int distrMethod)
o sendSetAttribute
- Function:
- This function invokes the specified script function with args on clients that are specified by [distmethod] parameter.
- Args:
- obj :
- Node instance.
- methodName :
- Remote function method name.
- args :
- Arg string.
- distrMethod :
- One of:
- responderOnly
- The packet will be sent to the responder of the target 3d object.
- If the 3d object is an avator, the packet is delivered to the client.
- If the 3d object is managed by AO, the packet is delivered to the AO.
- If the 3d object is not managed by anyone, the packet is delivered to the master of the simple shared behavior.
- allClients
- The packet will be sent to all the that are clients currently connected to the server, including the sender. This option may not work in the future.
- allClientsExceptMe
- The packet will be sent to all the that are clients currently connected to the server, except the sender. This option may not work in the future.
public static void sendSetAttribute(Node obj, String data)o updateObject
public static void updateObject(Node obj)
o sendApplSpecificMsg
- Function:
- This functions sends out a packet including the latest position of the specified object.
- Args:
- obj :(in)
- Node instance.
public static void sendApplSpecificMsg(SFNode obj, String methodName, String argument)
see sendAppleSpecificMsg()o sendApplSpecificMsgWithDist
public static void sendApplSpecificMsgWithDist(SFNode obj, String methodName, String argument, int distrMethod)
see sendApplSpecificMsgWithDist()o sendSetAttribute
public static void sendSetAttribute(SFNode obj, String data)
see sendSetAttribute()o updateObject
public static void updateObject(SFNode obj)
see updateObject()